/* Reset global */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: relative;
    padding: 0;
    margin: 0;
}

/* Slideshow */
.slideshow {
    position: relative; /* dans le flux normal */
    width: 100%;
    height: 350px; /* force la hauteur pour que les slides s'affichent */
    overflow: hidden;
    z-index: 1;
}

.slideshow .slide {
    position: absolute; /* nécessaire pour ton JS */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;  /* supprime l'espace blanc sous l'image */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slideshow .slide.active {
    opacity: 1;
}

/* Logo et titre */
.logo-titre {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 10px 0;
    background: #1b183e;
}

.logo-titre img {
    max-height: 80px;
    width: auto;
}

.logo-titre h1 {
    font-size: 2.5em;
    margin: 10px 0;
}

.logo-titre div {
    font-size: 1.2em;
}

/* Navbar */
.nav-bar {
    position: relative; /* le JS ajoutera .fixed */
    width: 100%;
    background-color: #292460;
    padding: 15px 0;
    z-index: 2;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-bar li {
    margin: 0 15px;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-bar a:hover {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    margin-top: 5px;
    left: -123px; /* décale vers la gauche */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1010;
}

.show {
    display: block;
}

/* Icone à droite */
.nav-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-right i {
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-right i:hover {
    color: #ffd700;
}

/* Classes gérées par le JS */
.sticky,
.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* Pour que le contenu principal ne soit pas caché par la navbar fixe */
body .main-content {
    margin-top: 130px; /* hauteur approximative de logo + navbar */
}

/* Responsive */
@media (max-width: 600px) {
    .nav-bar ul {
        flex-direction: column;
        align-items: center;
    }
    .nav-bar li {
        margin: 10px 0;
    }
}

.dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-button {
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      user-select: none;
    }

    .arrow {
        color: #ffd700;
      font-size: 0.8em;
      transition: transform 0.2s ease;
    }

    /* Contenu du menu */
    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #fff;
      min-width: 180px;
      margin-top: 5px;
      box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
      border: 1px solid #ccc;
      z-index: 1;
      border-radius: 5px;
    }

    .dropdown-content a {
      color: black;
      padding: 10px;
      text-decoration: none;
      display: block;
    }

    .dropdown-content a:hover {
      background-color: #f1f1f1;
    }

    /* Quand actif */
    .show {
      display: block;
    }

    .rotate {
      transform: rotate(180deg);
    }

    .card-section {
  padding: 0 20px;
  box-sizing: border-box;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: white;
  margin: 0 auto;
}

/* Centrage dans le conteneur */
.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive : afficher le bouton et dérouler le menu */
@media (max-width: 750px) {
  .menu-toggle {
    display: block;
    margin-bottom: 10px;
  }

  .nav-bar ul {
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-bar ul.open {
    max-height: 500px; /* ou plus selon ton contenu */
    overflow: visible; /* devient visible uniquement quand ouvert */
  }
}

.menu-toggle i {
  color: #ffd700; /* jaune doré */
  transition: color 0.3s ease;
}

.menu-toggle:hover i {
  color: #ffea00; /* jaune plus vif au survol */
}